package com.zzzzzz.content.pictext;

import org.hibernate.validator.constraints.NotBlank;

public class PicTextForm {
	@NotBlank
	private String title;
	private String textS;
	@NotBlank
	private String tags;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTextS() {
		return textS;
	}
	public void setTextS(String textS) {
		this.textS = textS;
	}
	public String getTags() {
		return tags;
	}
	public void setTags(String tags) {
		this.tags = tags;
	}

	public void updatePicText(PicText picText){
		picText.setTitle(this.getTitle());
		picText.setTextS(this.getTextS());
		picText.setTags(this.getTags());
	}

	public void updateForm(PicText picText){
		this.setTitle(picText.getTitle());
		this.setTextS(picText.getTextS());
		this.setTags(picText.getTags());
	}
}
